import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class Test02 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: FlatButton(
        child: Text("测试"),
        color: Colors.yellow,
        onPressed: (){
          print("onPressed");
        },
        onLongPress: (){
          print("onLongPress");
        },
        onHighlightChanged: (value){
          print("onHighlightChanged");
        },
      ),
    );
  }
}
